<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<c:choose>
<c:when test="${!empty activityList && fn:length(activityList) ne 0}">
<table class="table table-striped table-hover htable">
	<thead>
		<tr>
			<th>活动</th>
			<th>作者</th>
			<th>回复</th>
			<th>最后发表</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="activityInfo" items="${activityList}" varStatus="index">
		<tr>
			<td class="title">
				<a target="_blank" href="<%=path %>/uncheck/activity/view/${activityInfo.activity_id}">【${activityInfo.platform_name}】${activityInfo.activity_name}</a>
			</td>
			<td>${activityInfo.publish_user_name}</td>
			<td>${activityInfo.discuss_num}</td>
			<td><fmt:formatDate value="${activityInfo.last_discuss_time}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		</tr>
		</c:forEach>
	</tbody>
</table>
<!-- 分页 -->
<p:pagination pageNo="${queryMap.pageNo}" pageCount="${queryMap.pageCount}" queryFunction="queryActivityList" style="text-center"></p:pagination>
<!-- 分页 end -->
</c:when>
<c:otherwise>
	<table class="table table-striped table-hover htable">
		<thead>
			<tr>
				<th>活动</th>
				<th>作者</th>
				<th>回复</th>
				<th>最后发表</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td colspan="4" align="center">
					暂无数据
				</td>
			</tr>
		</tbody>
	</table>
</c:otherwise>
</c:choose>